<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@page import="com.gdcn.report.tag.TagParams;"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<%
TagParams params;
TagParams testStr;String ttt="";
String prefixPath = request.getContextPath();
//String prefixPath = getServletContext().getRealPath("/");
//prefixPath = prefixPath.replace("\\","/");
System.out.println(prefixPath);
%>

<%@ taglib uri="/reportTag" prefix="gdcntag"%>
<%@ taglib uri="/helloworldTag" prefix="mytag"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
<script src="ajax/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="ajax/json2.js" type="text/javascript"></script>
		<SCRIPT LANGUAGE="Javascript" SRC="JSClass/FusionCharts.js"></SCRIPT>
  
  <script type="text/javascript">
	function year() {
		$.post("generateReport.do?fieldValues=2009&dataFile=report.data",null,function(json) {
			var chart_aaa = new FusionCharts("Charts/FCF_Column3D.swf", "aaa", "400", "300");
			
				    // Provide entire XML data using dataXML method
				    chart_aaa.setDataXML(json.strXML);
				chart_aaa.render("aaaDiv");
		}, "json");
	};
  </script>
  </head>
  
  <body>
  
  
    <select name="year" id="year" onchange="year()">
    	<option value="please select year" selected>please select year</option>
    	<option value="2009">2009</option>
    	<option value="2005">2005</option>
    </select>
  
    <select name="other" id="other">
    	<option value="please select other" selected>please select year</option>
    	<option value="2009">2009</option>
    	<option value="2005">2005</option>
    </select>

			<div id='aaaDiv' align='center'>Chart.</div>
  </body>
</html>
